package com.sora.sys.mapper;

import com.sora.sys.domain.Role;
import com.sora.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author Àgä±
 * @since 2023-02-13
 */
public interface RoleMapper extends BaseMapper<Role> {

    void addRoleMenusByRoleId(@Param("id") Long id, @Param("menus") List<Long> menus);

    void addRolePermissionsByRoleId(@Param("id") Long id,@Param("permissions") List<Long> permissions);


    void delRoleMenuByRoleId(Long id);

    void delRolePermissionByRoleId(Long id);

    void delRoleEmployeeByRoleId(Long id);
}
